package statesPattern;

public class SoldOutState implements State {
    private  final GumballMachine machine;
    public SoldOutState(GumballMachine gumballMachine) {
        this.machine = gumballMachine;
    }

    @Override
    public void insertQuarter() {
        System.out.println("Sorry ,we're sold out ");

    }

    @Override
    public void ejectQuarter() {
        System.out.println("Sorry ,we're sold out 1");
    }

    @Override
    public void turnCrank() {
        System.out.println("Sorry ,we're sold out 2");
    }

    @Override
    public void dispense() {
        System.out.println("Sorry ,we're sold out 3");
    }
}
